package com.gezi.admin.utils.wx.weapp.model;

import com.google.gson.Gson;
import lombok.Data;

@Data
public class UserWxLoginInfoModel {

    /**
     * session_key : 5p+84gsa2hTITF6nBqFOzg==
     * openid : o_USv4jxEJjXTmGaVKALUwN0xatA
     * unionid:
     */
    private String session_key;
    private String openid;
    //用户在开放平台的唯一标识符，若当前小程序已绑定到微信开放平台帐号下会返回
    private String unionid;

    public static UserWxLoginInfoModel objectFromData(String str) {

        return new Gson().fromJson(str, UserWxLoginInfoModel.class);
    }
}
